//
//  HBQNetWorkTools.h
//  HelloBeeQuick
//
//  Created by LiYiLin on 16/8/18.
//  Copyright © 2016年 LiYiLin. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>

//成功时的回调
typedef void(^successBlock)(id responseObjects);
//失败时的回调
typedef void(^failureBlock)(NSError *error);


@interface HBQNetWorkTools : AFHTTPSessionManager

//单例模式
+ (instancetype)SharedManager;

//Get请求方式
- (void)get_RequestWithUrl:(NSString *)urlString parameters:(NSDictionary *)parameters successBlock:(successBlock)success failureBlock:(failureBlock)failure;

//post请求方式
- (void)post_RequestWithUrl:(NSString *)urlString parameters:(NSDictionary *)parameters successBlock:(successBlock)success failureBlock:(failureBlock)failure;

@end
